package com.lry.netty01.server.entity;

import io.netty.channel.Channel;

public class Packet {

    public boolean isUp;//是否是上行报文，也就是客户端发给服务器的

    public Channel channel;

    public FixedFrame request;

    public FixedFrame response;

    public boolean finished;

    public Packet(boolean isUp, Channel channel,FixedFrame request) {
        this.isUp = isUp;
        this.channel = channel;
        this.request = request;
    }


    @Override
    public String toString() {
        return "Packet{" +
                "isUp=" + isUp +
                ", channel=" + channel +
                ", request=" + request +
                ", response=" + response +
                ", finished=" + finished +
                '}';
    }
}
